#pragma once
#include <cocos2d.h>
#include "Bullet.h"
#include "pugixml.hpp"

using namespace pugi;
USING_NS_CC;

class BulletFactory : public CCObject
{
public:
	BulletFactory(void);
	~BulletFactory(void);
	virtual void parseXml(xml_node node);
	virtual bool init();
	virtual Bullet* createBullet();
	
	CC_SYNTHESIZE_RETAIN(CCString*, _id, Id);
	CC_SYNTHESIZE(int, _damage, Damage);
	CC_SYNTHESIZE(CCSize, _bound, Bound);
	CC_SYNTHESIZE_RETAIN(CCArray*, _resourceData, ResourceData);
	CREATE_FUNC(BulletFactory);
};

